#include "imagedecodercallback.h"

CImageDecoderCallback::CImageDecoderCallback()
: CActive(EPriorityStandard)
{
CActiveScheduler::Add(this);
}

CImageDecoderCallback* CImageDecoderCallback::NewL()
	{
	CImageDecoderCallback* ret = NewLC();
	CleanupStack::Pop(ret);
	return ret;	
	}

CImageDecoderCallback* CImageDecoderCallback::NewLC()
	{
	CImageDecoderCallback* ret = new (ELeave) CImageDecoderCallback();
	CleanupStack::PushL(ret);
	ret->ConstructL();
	return ret;
	}


void CImageDecoderCallback::DoCancel()
{
}

void CImageDecoderCallback::SetActive(MImageDecoderCallback* aTarget)
	{
	iTarget = aTarget;
	CActive::SetActive();
	}

CImageDecoderCallback::~CImageDecoderCallback()
	{
	Cancel();
	}

void CImageDecoderCallback::ConstructL()
	{
	iTarget = NULL;
	}


void CImageDecoderCallback::RunL()
	{
	iTarget->MImageDecoderCallbackRunL();
	}

TInt CImageDecoderCallback::RunError(TInt aError)
	{
	return KErrNone;
	}
